package com.weimob.cloud.api.crm.client;

import com.dtflys.forest.annotation.BaseRequest;
import com.dtflys.forest.annotation.JSONBody;
import com.dtflys.forest.annotation.Post;
import com.weimob.cloud.api.common.WeimobCloudRsp;
import com.weimob.cloud.api.crm.req.WeimobCrmCouponReceiveReq;
import com.weimob.cloud.api.crm.rsp.WeimobCrmCouponReceiveRsp;
import com.weimob.cloud.api.token.interceptor.WeimobTokenInterceptor;

/**
 * 微明云平台CRM券码管理优惠券客户端接口
 */
@BaseRequest(baseURL = "https://dopen.weimob.com/apigw/weimob_crm/v2.0/coupon", interceptor = WeimobTokenInterceptor.class)
public interface WeimobCrmCouponClient {

    /**
     * 获取会员卡列表
     */
    @Post(url = "/receive?accesstoken=${accessToken}")
    WeimobCloudRsp<WeimobCrmCouponReceiveRsp> couponReceive(@JSONBody WeimobCrmCouponReceiveReq req);
}
